package com.mk.admin.controller;

import com.mk.admin.model.ResultDto;
import com.mk.admin.model.query.ReserveSignInQuery;
import com.mk.admin.service.SignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "挂号签到与排序")
@RequestMapping("/a/adm/sign")
public class SignController {
    @Autowired
    private SignService signService;

    @PostMapping("/in")
    @ApiOperation("在线签到")
    public ResultDto sign(@RequestBody ReserveSignInQuery query) {
        return signService.sign(query);
    }
}
